package com.asialjim.wechat.official.controller;

import com.asialjim.wechat.official.message.wiki.MsgWikiService;
import com.asialjim.wechat.official.message.wiki.vo.MsgWikiFunctionInfo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <h2><em>ASIAL JIM JAVA DOC</em></h2><hr/>
 * <h3>CLASS DESCRIPTION</h3><strong>
 * <p> msg wiki controller
 * </strong><p><p><em> Copyright &copy; ztzh inc Ztzh Co., LTD</em><hr/>
 *
 * @author Asial Jim &nbsp;&nbsp; Email: <a href="mailto:zengyz0128@zsmarter.com">zengyz0128@zsmarter.com</a> &nbsp;&nbsp; <a href="mailto:asialjim@hotmail.com">asialjim@hotmail.com</a>
 * @version 1.0.0
 * @since 2021/4/6 20:41 &nbsp; JDK 1.8
 */
@RestController
@AllArgsConstructor
@RequestMapping("/message/wiki")
@Api("/message/wiki")
public class MsgWikiController {
    private final MsgWikiService wikiService;

    @GetMapping("/all")
    @ApiOperation("/all")
    public List<MsgWikiFunctionInfo> allFunctions(){
        return wikiService.wikiFunctionInfos();
    }
}
